package org.nstack.storage.primary;

import org.nstack.header.storage.primary.PrimaryStorageCapacityVO;

import java.util.Map;


public interface PrimaryStoragePhysicalCapacityManager {
    void setGlobalRatio(double ratio);

    double getGlobalRatio();

    void setRatio(String psUuid, double ratio);

    void deleteRatio(String psUuid);

    double getRatio(String psUuid);

    Map<String, Double> getAllRatio();

    boolean checkCapacityByRatio(String psUuid, long totalPhysicalCapacity, long totalAvailableCapacity);

    boolean checkCapacityByRatio(String psUuid, PrimaryStorageCapacityVO cap);
}
